Builder

Builder to construct a BubbleMetadata object.

Constructors

Link copied to clipboard
constructor()
@RequiresApi(value = 30)
constructor(@NonNull shortcutId: String)
constructor(@NonNull intent: PendingIntent, @NonNull icon: IconCompat)
Creates a BubbleMetadata.Builder based on the provided intent and icon.

Functions

Link copied to clipboard
Creates the BubbleMetadata defined by this builder.
Link copied to clipboard
If set and the app creating the bubble is in the foreground, the bubble will be posted in its expanded state, with the contents of getIntent in a floating window.
Link copied to clipboard
Sets an optional intent to send when this bubble is explicitly removed by the user.
Link copied to clipboard
Sets the desired height in DPs for the app content defined by setIntent, this height may not be respected if there is not enough space on the screen or if the provided height is too small to be useful.
Link copied to clipboard
Sets the desired height via resId for the app content defined by setIntent, this height may not be respected if there is not enough space on the screen or if the provided height is too small to be useful.
Link copied to clipboard
Sets the icon for the bubble.
Link copied to clipboard
Sets the intent that will be used when the bubble is expanded.
Link copied to clipboard
If set and the app posting the bubble is in the foreground, the bubble will be posted without the associated notification in the notification shade.